package com.cykj.service.impl;

import com.cykj.dto.ResponseDTO;
import com.cykj.entity.RoleDO;
import com.cykj.mapper.RoleMapper;
import com.cykj.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Program: Mooc-Admin
 * @Package: com.cykj.service.impl
 * @Author: 张俊杰
 * @Create: 2025-07-11 10:12
 * @Description: TODO
 * @Vision: 1.0
 **/
@Service
public class RoleServiceImpl implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public ResponseDTO getListRole() {

        List<RoleDO> listRole = roleMapper.getListRole();

        return ResponseDTO.success(listRole);
    }
}
